<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>兑换礼品</title>
    <%@include file="/static/js/common.jsp"%>
    <script src="/static/js/exchangeGift.js"></script>
    <script>
    </script>
</head>
<body id="mylayout" class="easyui-layout">
<div data-options="region:'east',split:true" style="width:50%;">
    <div id="ex_tb">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="insert">添加礼品</a>
    </div>
    <form id="ex_form2" method="get">
        <div>
            <input type="hidden" name="id">
            礼品编号:<input  class="easyui-textbox" name="sn" data-options="'readonly':true">
            礼品名称:<input class="easyui-textbox" name="name" data-options="'readonly':true">
        </div>
        <div>
            礼品单位:<input class="easyui-textbox" name="unit" data-options="'readonly':true">
            兑换积分:<input id="gift_integral" class="easyui-textbox" name="integral" data-options="'readonly':true">
        </div>
        <div>
            总剩余量:<input  class="easyui-textbox" name="number" data-options="'readonly':true">
            兑换数量:<input class="easyui-textbox" id="num"  >
        </div>
        <div>
            总计:
            <input  class="easyui-textbox" id="totalCount" name="amount" data-options="'readonly':true">
        </div>
        <div>
            <button type="button" id="change">兑换</button>
        </div>
    </form>
</div>
<div data-options="region:'center'" style="padding:5px;">
    <form id="member_form" method="get">
        <div>
            <input id="number" class="easyui-textbox" prompt="请输入卡号" name="number">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="query()"></a>
        </div>
        <div style="height: 30px">
            会员名称:<input class="easyui-textbox" name="name">
            会员等级:<input class="easyui-textbox" name="rankId">
        </div>
        <div style="height: 30px">
            会员生日:<input class="easyui-datebox" name="memberbirthday">
            会员余额:<input id="balance" class="easyui-textbox" name="balance">
        </div>
        <div style="height: 30px">
            会员卡号:<input  id="cardNumber" class="easyui-textbox" name="cardnumber">
            卡片余额:<input class="easyui-textbox" name="balance">
        </div>
        <div style="height: 30px">
            累计消费:<input class="easyui-textbox" name="consumption">
            目前积分:<input id="currentPoint"  class="easyui-textbox" name="points">
        </div>
    </form>
</div>


<div id="ex_dialog">
    <div align="center">
        <input id="name" style="width: 300px" id="ex_" class="easyui-textbox" prompt="请输入礼品名称" name="keyword">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="selectByName()"></a>
    </div>
    <table id="ex_datagrid3">
    </table>
</div>


<div class="easyui-panel" style="width:300px;height:200px;background:#fafafa;" id="tab1">
    <table id="ex_datagrid">
    </table>
</div>

<div id="ex_btn2">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="save2()">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" onclick="cancel2()">取消</a>
</div>
</body>
</html>
